package com.isoftstone.merchant.service.bind;

import com.isoftstone.common.Page;
import com.isoftstone.merchant.entity.bind.MBind;

/**
 * @Author: zhaojg
 * @Description
 * @Date: Created in 22:05 2017/12/14
 * @Modified by:bind
 */
public interface BindService {

    int addBind(MBind bind)throws Exception;

    void saveBind(MBind mBind)throws Exception;

    MBind queryBindByThreeParam(String feeUserId,String corpId,String openAccount)throws Exception;

    void updateBindByFeeUserId(MBind bind)throws Exception;
    //统计签约用户数
    MBind getBindUserNumber(Page page)throws Exception;

    Integer getUserNumber(Page page)throws Exception;

    Integer getTodayUserNumber(Page page)throws Exception;

    //解约
    void cancelContract(String feeUserId,String corpId,String openAccount)throws Exception;

    //续约
    void extentContract(String feeUserId,String corpId,String openAccount)throws Exception;

    MBind queryMbindByThreeParam(String feeUserId,String openAccount,String corpId) throws Exception;



}
